﻿@model Project_KhuyenMaiVang.Models.TinKhuyenMaiDTO

@{
    ViewBag.Title = "EditTinKhuyenMai";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>EditTinKhuyenMai</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>TinKhuyenMaiDTO</legend>

        <div class="editor-label">
            @Html.Label("Tình Trạng")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TinhTrang)
            @Html.ValidationMessageFor(model => model.TinhTrang)
        </div>

        <div class="hidden">
            @Html.LabelFor(model => model.MaHinhThucGaoHang)
        </div>
        <div class="hidden" >
            @Html.EditorFor(model => model.MaHinhThucGaoHang)
            @Html.ValidationMessageFor(model => model.MaHinhThucGaoHang)
        </div>

        <div class="editor-label">
            @Html.Label("Ngày Cuối Cùng Sử Dụng Voucher")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NgayCuoiCungSuDungVoucher)
            @Html.ValidationMessageFor(model => model.NgayCuoiCungSuDungVoucher)
        </div>

        <div class="editor-label">
            @Html.Label("Số Lượng Tối Thiểu")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SoLuongToiThieu)
            @Html.ValidationMessageFor(model => model.SoLuongToiThieu)
        </div>

        <div class="hidden">
            @Html.LabelFor(model => model.IdAccount)
        </div>
        <div class="hidden">
            @Html.EditorFor(model => model.IdAccount)
            @Html.ValidationMessageFor(model => model.IdAccount)
        </div>

        <div class="editor-label">
            @Html.Label("Điều Kiện Sử Dụng")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DieuKienSuDung)
            @Html.ValidationMessageFor(model => model.DieuKienSuDung)
        </div>

        <div class="editor-label">
            @Html.Label("Điểm Nổi Bật")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DiemNoiBat)
            @Html.ValidationMessageFor(model => model.DiemNoiBat)
        </div>

        <div class="editor-label">
            @Html.Label("Số Lượng Mua")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SoLuongMua)
            @Html.ValidationMessageFor(model => model.SoLuongMua)
        </div>

        <div class="editor-label">
            @Html.Label("Số Lượng Khuyến Mãi")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SoLuongKhuyenMai)
            @Html.ValidationMessageFor(model => model.SoLuongKhuyenMai)
        </div>

        <div class="editor-label">
            @Html.Label("Ngày Kết Thúc")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NgayKetThuc)
            @Html.ValidationMessageFor(model => model.NgayKetThuc)
        </div>

        <div class="editor-label">
            @Html.Label("Ngày Bắt Đầu")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NgayBatDau)
            @Html.ValidationMessageFor(model => model.NgayBatDau)
        </div>

        <div class="editor-label">
            @Html.Label("Giá Khuyến Mãi")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.GiaKhuyenMai)
            @Html.ValidationMessageFor(model => model.GiaKhuyenMai)
        </div>

        <div class="editor-label">
            @Html.Label("Thông Tin Tóm Tắt")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ThongTinTomTat)
            @Html.ValidationMessageFor(model => model.ThongTinTomTat)
        </div>

        <div class="hidden">
            @Html.LabelFor(model => model.MaSanPham)
        </div>
        <div class="hidden">
            @Html.EditorFor(model => model.MaSanPham)
            @Html.ValidationMessageFor(model => model.MaSanPham)
        </div>

        <div class="hidden">
            @Html.LabelFor(model => model.MaTinKhuyenMai)
        </div>
        <div class="hidden">
            @Html.EditorFor(model => model.MaTinKhuyenMai)
            @Html.ValidationMessageFor(model => model.MaTinKhuyenMai)
        </div>

        <div class="hidden">
            @Html.LabelFor(model => model.MaKhuVuc)
        </div>
        <div class="hidden">
            @Html.EditorFor(model => model.MaKhuVuc)
            @Html.ValidationMessageFor(model => model.MaKhuVuc)
        </div>

        <div class="editor-label">
            @Html.Label("Địa Chỉ")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DiaChi)
            @Html.ValidationMessageFor(model => model.DiaChi)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "QuanLyTinKhuyenMai")
</div>

<script type="text/javascript" src="../../Scripts/jquery-1.5.1.js"></script>

<script type="text/javascript">
    $(document).ready()
    {
        $(".hidden").hide();
    }
</script>